<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>demo</title>
  <style>
  
    body{
      background: black;
    }
    
    .q-loading-2-inner {
      font-weight: bold;
      /* 这里可以随意加样式 */

      background: #fff
          linear-gradient(
          -135deg,
          transparent 25%,
          transparent 40%,
          rgba(3,194,205,0.3) 40%,/* 这两个值是滑动条的颜色 */
          rgba(3,194,205,0.3) 60%,/* 默认是绿色 自己更改即可 */
          transparent 60%,
          transparent
          );
      background-size: 60px 60px;
      background-repeat: no-repeat;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      animation: scratchy 3s linear infinite;
      }

      @keyframes scratchy {
      0% {
          background-position: -100% 0;
      }
      100% {
          background-position: 130% 0;
      }
      }
  </style>
</head>
<body>
  <b class="q-loading-2-inner">自定义文字颜色及高光颜色</b>
</body>
</html>
